package cn.hxzy.service.impl;

import cn.hxzy.domain.Task;
import cn.hxzy.mapper.TaskMapper;
import cn.hxzy.service.TaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {
    @Autowired
    private TaskMapper taskMapper;
    @Override
    public List<Task> getTaskListByTeacherId(Long teacherId) {
        List<Task> taskList = taskMapper.getTaskListByTeacherId(teacherId);
        if (taskList != null){
            return taskList;
        }
        return null;
    }
}
